<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:80:"D:\www\jiedanwwangshangjiatwo\public/../application/admin\view\order\detail.html";i:1583218451;s:71:"D:\www\jiedanwwangshangjiatwo\application\admin\view\public\header.html";i:1545961364;s:69:"D:\www\jiedanwwangshangjiatwo\application\admin\view\public\left.html";i:1582874731;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>网站管理系统</title>
<meta name="author" content="" />
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/style.css" />
	<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/page.css" />

<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->
	<link href="__STATIC__/admin/font/css/font-awesome.min.css" rel="stylesheet" />
	<link href="__STATIC__/admin/css/main.css" rel="stylesheet" type="text/css">
<script src="__STATIC__/admin/js/jquery.js"></script>
<script src="__STATIC__/admin/js/jquery.mCustomScrollbar.concat.min.js"></script>

<script type="text/javascript" charset="utf-8" src="__STATIC__/admin/js/editor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__STATIC__/admin/js/editor/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="__STATIC__/admin/js/editor/lang/zh-cn/zh-cn.js"></script>
	<script src="__STATIC__/admin/js/layer/layer.js"></script>
<script>
	(function($){
		$(window).load(function(){
			
			$("a[rel='load-content']").click(function(e){
				e.preventDefault();
				var url=$(this).attr("href");
				$.get(url,function(data){
					$(".content .mCSB_container").append(data); //load new content inside .mCSB_container
					//scroll-to appended content 
					$(".content").mCustomScrollbar("scrollTo","h2:last");
				});
			});
			
			$(".content").delegate("a[href='top']","click",function(e){
				e.preventDefault();
				$(".content").mCustomScrollbar("scrollTo",$(this).attr("href"));
			});
			
		});
	})(jQuery);
</script>
</head>
<body>
<header>
 <h1><img src="__STATIC__/admin/images/admin_logo.png"/></h1>
 <ul class="rt_nav">
  <li><a href="<?php echo url('index/index/index'); ?>" target="_blank" class="website_icon">站点首页</a></li>
  <li><a class="admin_icon"><?php echo $info['account']; ?></a></li>
  <li><a href="#" class="set_icon">账号设置</a></li>
  <li><a href="<?php echo url('Login/login_out'); ?>" class="quit_icon">安全退出</a></li>
 </ul>
</header>
<style>
	.my_ul{
		height: 45px;background-color: #F0F0EE;margin-left: 210px;line-height: 46px;border-bottom: 1px solid #b6b6b6;
	}
	.my_ul li a{
		float: left;color: #333;margin-left: 20px;font-size: 14px;
	}
	.my_ul li a:hover{
		color: #19A97B;
	}
</style>
<section>
	<ul class="my_ul">
		
	</ul>
</section>
<?php
 $active=request()->controller().'/'.request()->action();

?>
<aside class="lt_aside_nav content mCustomScrollbar">
	<h2><a href="<?php echo url('Index/index'); ?>">起始页</a></h2>
	<ul>
		<?php if($group_power == 'all' || in_array('client',$group_power)): ?>
		<li>
			<dl>
				<dt>客户列表</dt>
				<?php if($role_right == 'all' || in_array('Center@member',$role_right)): ?>
				<dd>
					<a href="<?php echo url('Center/member'); ?>"  <?php if($active == 'Center/member'): ?>class="active"<?php endif; ?>>会员列表</a>
				</dd>
				<?php endif; if($role_right == 'all' || in_array('Merchant@index',$role_right)): ?>
					<dd>
						<a href="<?php echo url('Merchant/index'); ?>"  <?php if($active == 'Merchant/index'): ?>class="active"<?php endif; ?>>商户列表</a>
					</dd>
				<?php endif; if($role_right == 'all' || in_array('Driver@index',$role_right)): ?>
					<dd>
						<a href="<?php echo url('Driver/index'); ?>"  <?php if($active == 'Driver/index'): ?>class="active"<?php endif; ?>>司机列表</a>
					</dd>
				<?php endif; if($role_right == 'all' || in_array('Merchant@variety',$role_right)): ?>
					<dd>
						<a href="<?php echo url('Merchant/variety'); ?>"  <?php if($active == 'Merchant/variety'): ?>class="active"<?php endif; ?>>菜品统计</a>
					</dd>
				<?php endif; ?>
			</dl>
		</li>
			<?php endif; if($group_power == 'all' || in_array('data',$group_power)): ?>
			<li>
				<dl>
					<dt>数据</dt>
					<?php if($role_right == 'all' || in_array('Order@order_list',$role_right)): ?>
						<dd>
							<a href="<?php echo url('Order/order_list'); ?>"  <?php if($active == 'Order/order_list'): ?>class="active"<?php endif; ?>>订单列表</a>
						</dd>
					<?php endif; if($role_right == 'all' || in_array('Withdrawals@index',$role_right)): ?>
						<dd>
							<a href="<?php echo url('Withdrawals/index'); ?>"  <?php if($active == 'Withdrawals/index'): ?>class="active"<?php endif; ?>>提现列表</a>
						</dd>
					<?php endif; ?>
					<dd>
						<a href="<?php echo url('Membership/list_driver_withdrawals'); ?>">司机提现列表</a>
					</dd>
					<dd>
						<a href="<?php echo url('Membership/list_driver_balance'); ?>">司机收入列表</a>
					</dd>
				</dl>
			</li>
		<?php endif; if($group_power == 'all' || in_array('distribution',$group_power)): ?>
			<li>
				<dl>
					<dt>分销推广</dt>
					<dd>
						<a href="<?php echo url('Membership/list_index'); ?>">会员审核列表</a>
					</dd>
					<dd>
						<a href="<?php echo url('Membership/list_withdrawals'); ?>">分销提现列表</a>
					</dd>

					<dd>
						<a href="<?php echo url('Membership/list_system_balance'); ?>">平台回扣列表</a>
					</dd>
					<dd>
						<a href="<?php echo url('Membership/list_member_balance'); ?>">会员佣金列表</a>
					</dd>
					<dd>
						<a href="<?php echo url('Membership/list_mention_balance'); ?>">自提佣金列表</a>
					</dd>
				</dl>
			</li>
		<?php endif; if($group_power == 'all' || in_array('set',$group_power)): ?>
			<li>
				<dl>
					<dt>店铺设置</dt>
					<?php if($role_right == 'all' || in_array('Set@banner',$role_right)): ?>
						<!-- <dd>
							<a href="<?php echo url('Set/banner'); ?>"  <?php if($active == 'Set/banner'): ?>class="active"<?php endif; ?>>店铺轮播图</a>
						</dd> -->
					<?php endif; if($role_right == 'all' || in_array('Set@banner',$role_right)): ?>
						<dd>
							<a href="<?php echo url('Set/shop_list'); ?>"  <?php if($active == 'Set/banner'): ?>class="active"<?php endif; ?>>店铺列表</a>
						</dd>
					<?php endif; if($role_right == 'all' || in_array('Set@activity',$role_right)): ?>
						<!-- <dd>
							<a href="<?php echo url('Set/activity'); ?>"  <?php if($active == 'Set/activity'): ?>class="active"<?php endif; ?>>首页活动专区</a>
						</dd> -->
					<?php endif; if($role_right == 'all' || in_array('Set@banner2',$role_right)): ?>
						<!-- <dd>
							<a href="<?php echo url('Set/banner2'); ?>"  <?php if($active == 'Set/banner2'): ?>class="active"<?php endif; ?>>轮播图2</a>
						</dd> -->
					<?php endif; if($role_right == 'all' || in_array('Set@category',$role_right)): ?>
						<!-- <dd>
							<a href="<?php echo url('Set/category'); ?>"  <?php if($active == 'Set/category'): ?>class="active"<?php endif; ?>>店铺分类</a>
						</dd> -->
					<?php endif; ?>
				</dl>
			</li>
		<?php endif; if($group_power == 'all' || in_array('set',$group_power)): ?>
			<li>
				<dl>
					<dt>设置</dt>
					<?php if($role_right == 'all' || in_array('Set@about',$role_right)): ?>
						<dd>
							<a href="<?php echo url('Set/about'); ?>"  <?php if($active == 'Set/about'): ?>class="active"<?php endif; ?>>关于我们</a>
						</dd>
					<?php endif; if($role_right == 'all' || in_array('Set@activity2',$role_right)): ?>
						<!-- <dd>
							<a href="<?php echo url('Set/activity2'); ?>"  <?php if($active == 'Set/activity2'): ?>class="active"<?php endif; ?>>线路活动专区</a>
						</dd> -->
					<?php endif; if($role_right == 'all' || in_array('Set@feedback',$role_right)): ?>
						<dd>
							<a href="<?php echo url('Set/feedback'); ?>"  <?php if($active == 'Set/feedback'): ?>class="active"<?php endif; ?>>意见反馈</a>
						</dd>
					<?php endif; if($role_right == 'all' || in_array('Set@index',$role_right)): ?>
						<dd>
							<a href="<?php echo url('Set/index'); ?>"  <?php if($active == 'Set/index'): ?>class="active"<?php endif; ?>>系统设置</a>
						</dd>
					<?php endif; ?>
				</dl>
			</li>
		<?php endif; if($group_power == 'all'): ?>
			<li>
				<dl>
					<dt>权限管理</dt>
					<dd>
						<a href="<?php echo url('Admin/li'); ?>"  <?php if($active == 'Admin/li'): ?>class="active"<?php endif; ?>>管理员</a>
					</dd>
					<dd>
						<a href="<?php echo url('Admin/role'); ?>"  <?php if($active == 'Admin/role'): ?>class="active"<?php endif; ?>>角色管理</a>
					</dd>
					<!-- <dd>
						<a href="<?php echo url('Admin/right_list'); ?>"  <?php if($active == 'Admin/right_list'): ?>class="active"<?php endif; ?>>权限列表</a>
					</dd> -->
				</dl>
			</li>
		<?php endif; ?>
		<li>
			<p class="btm_infor">© 版权所有</p>
		</li>
	</ul>

</aside>
<section class="rt_wrap content mCustomScrollbar">
	<div class="rt_content">

		<!--点击加载-->
		<script>
			$(document).ready(function() {
				$("#loading").click(function() {
					$(".loading_area").fadeIn();
					$(".loading_area").fadeOut(1500);
				});
			});
		</script>
		<section class="loading_area">
			<div class="loading_cont">
				<div class="loading_icon"><i></i><i></i><i></i><i></i><i></i></div>
				<div class="loading_txt"><mark>数据正在加载，请稍后！</mark></div>
			</div>
		</section>
		<!--结束加载-->
		<!--弹出框效果-->
		<script>
			$(document).ready(function() {
				//弹出文本性提示框
				$("#showPopTxt").click(function() {
					$(".pop_bg").fadeIn();
				});
				//弹出：确认按钮
				$(".trueBtn").click(function() {
					alert("你点击了确认！"); //测试
					$(".pop_bg").fadeOut();
				});
				//弹出：取消或关闭按钮
				$(".falseBtn").click(function() {
					alert("你点击了取消/关闭！"); //测试
					$(".pop_bg").fadeOut();
				});
			});
		</script>
		<section class="pop_bg">
			<div class="pop_cont">
				<!--title-->
				<h3>弹出提示标题</h3>
				<!--content-->
				<div class="pop_cont_input">
					<ul>
						<li>
							<span>标题</span>
							<input type="text" placeholder="定义提示语..." class="textbox" />
						</li>
						<li>
							<span class="ttl">城市</span>
							<select class="select">
								<option>选择省份</option>
							</select>
							<select class="select">
								<option>选择城市</option>
							</select>
							<select class="select">
								<option>选择区/县</option>
							</select>
						</li>
						<li>
							<span class="ttl">地址</span>
							<input type="text" placeholder="定义提示语..." class="textbox" />
						</li>
						<li>
							<span class="ttl">地址</span>
							<textarea class="textarea" style="height:50px;width:80%;"></textarea>
						</li>
					</ul>
				</div>
				<!--以pop_cont_text分界-->
				<div class="pop_cont_text">
					这里是文字性提示信息！
				</div>
				<!--bottom:operate->button-->
				<div class="btm_btn">
					<input type="button" value="确认" class="input_btn trueBtn" />
					<input type="button" value="关闭" class="input_btn falseBtn" />
				</div>
			</div>
		</section>
		<!--结束：弹出框效果-->
<style>
    .ncm-goods-gift {
        text-align: left;
    }
    .ncm-goods-gift ul {
        display: inline-block;
        font-size: 0;
        vertical-align: middle;
    }
    .ncm-goods-gift li {
        display: inline-block;
        letter-spacing: normal;
        margin-right: 4px;
        vertical-align: top;
        word-spacing: normal;
    }
    .ncm-goods-gift li a {
        background-color: #fff;
        display: table-cell;
        height: 30px;
        line-height: 0;
        overflow: hidden;
        text-align: center;
        vertical-align: middle;
        width: 30px;
    }
    .ncm-goods-gift li a img {
        max-height: 30px;
        max-width: 30px;
    }

    a.green{

        background: #fff none repeat scroll 0 0;
        border: 1px solid #f5f5f5;
        border-radius: 4px;
        color: #999;
        cursor: pointer !important;
        display: inline-block;
        font-size: 12px;
        font-weight: normal;
        height: 20px;
        letter-spacing: normal;
        line-height: 20px;
        margin: 0 5px 0 0;
        padding: 1px 6px;
        vertical-align: top;
    }

    a.green:hover { color: #FFF; background-color: #1BBC9D; border-color: #16A086; }

    .ncap-order-style .ncap-order-details{
        margin:20px auto;
    }
    .contact-info h3,.contact-info .form_class{
        display: inline-block;
        vertical-align: middle;
    }
    .form_class i.fa{
        vertical-align: text-bottom;
    }
</style>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.go(-1)" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>订单</h3>
                <h5>交易订单查询及管理</h5>
            </div>

        </div>

    </div>
    <div class="ncap-order-style">
        <div class="titile">
            <h3></h3>
        </div>

        <div class="ncap-order-details">
            <form id="order-action">
                <div class="tabs-panels">
                    <div class="misc-info">
                        <h3>基本信息</h3>
                        <dl>
                            <dt>订单 ID：</dt>
                            <dd><?php echo $order['id']; ?></dd>
                            <dt>订单号：</dt>
                            <dd><?php echo $order['order_sn']; ?></dd>
                            <dt>会员：</dt>
                            <dd><?php echo $order['nickname']; ?></dd>
                        </dl>
                        <dl>
                            <dt>电话：</dt>
                            <dd><?php echo $order['mobile']; ?></dd>
                            <dt>订单类型：</dt>
                            <dd><?php switch($order['type']): case "1": ?><span style="color: red">预约</span><?php break; case "2": ?><span style="color: red">送</span><?php break; case "3": ?><span style="color: red">扫码</span><?php break; endswitch; ?></dd>
                            <dt>订单状态：</dt>
                            <dd>
                                <?php switch($order['status']): case "0": ?><span style="color: red">待支付</span><?php break; case "1": ?><span style="color: red">待处理</span><?php break; case "2": ?><span style="color: red">待完成</span><?php break; endswitch; ?>
                            </dd>
                        </dl>
                        <dl>
                            <dt>下单时间：</dt>
                            <dd><?php echo date('Y-m-d H:i',$order['create_time']); ?></dd>
                            <dt>支付时间：</dt>
                            <dd>
                                <?php if($order['pay_time'] != 0): ?><?php echo date('Y-m-d H:i',$order['pay_time']); else: ?>
                                    N
                                <?php endif; ?>
                            </dd>
                            <dt>处理时间：</dt>
                            <dd>
                                <?php if($order['update_time'] != 0): ?><?php echo date('Y-m-d H:i',$order['update_time']); else: ?>
                                    N
                                <?php endif; ?>
                            </dd>
                        </dl>
                        <dl>
                            <dt>完成时间：</dt>
                            <dd>
                                <?php if($order['finish_time'] != 0): ?><?php echo date('Y-m-d H:i',$order['finish_time']); else: ?>
                                    N
                                <?php endif; ?>
                            </dd>
                            <dt>预约时间：</dt>
                            <dd>
                                <?php if($order['book_time'] != 0): ?><?php echo date('Y-m-d H:i',$order['book_time']); else: ?>
                                    N
                                <?php endif; ?>
                            </dd>
                            <dt>支付方式：</dt>
                            <dd><?php echo (isset($order['pay_type']) && ($order['pay_type'] !== '')?$order['pay_type']:'其他方式'); ?></dd>
                        </dl>
                        <dl>
                            <dt>备注：</dt>
                            <dd style="color: red"><?php echo (isset($order['preference']) && ($order['preference'] !== '')?$order['preference']:''); ?></dd>
                        </dl>
                    </div>
                    <div class="goods-info">
                        <h4>商品信息</h4>
                        <table>
                            <thead>
                            <tr>
                                <th>商品ID</th>
                                <th>商品</th>
                                <th>商品图片</th>
                                <th>规格名称</th>
                                <th>商品属性</th>
                                <th>数量</th>
                                <th>单品价格</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if(is_array($order_goods) || $order_goods instanceof \think\Collection || $order_goods instanceof \think\Paginator): $i = 0; $__LIST__ = $order_goods;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$good): $mod = ($i % 2 );++$i;?>
                                <tr>
                                    <td class="w60"><?php echo $good['goods_id']; ?></td>
                                    <td class="w60"><?php echo $good['goods_name']; ?></td>
                                    <td class="w60"><div class="goods-thumb">
                                        <a href="<?php echo url('Goods/goodsedit',array('id'=>$good['goods_id'])); ?>" target="_blank"><img alt="" src="<?php echo $good['goods_image']; ?>" /> </a></div></td>
                                    <td class="w80"><?php echo $good['spec_name']; ?></td>
                                    <td class="w80"><?php echo $good['param']; ?></td>
                                    <td class="w60"><?php echo $good['goods_num']; ?></td>
                                    <td class="w100"><?php echo $good['goods_price']; ?></td>

                                </tr>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </table>
                    </div>
                    <div class="total-amount contact-info">
                        <h3>订单总额：￥<?php echo $order['total_price']; ?></h3>
                    </div>
                    <div class="contact-info">
                        <h3>费用信息 </h3>
                        <dl>
                            <dt>小计：</dt>
                            <dd><?php echo $order['total_price']; ?></dd>
                            <dt>运费：</dt>
                            <dd>+<?php echo $order['total_price']; ?></dd>
                        </dl>
                        <dl>
                            <dt>平台回扣：</dt>
                            <dd><?php echo $system_balance_money; ?></dd>
                            <dt>佣金回扣：</dt>
                            <dd><?php echo $member_balance_money; ?></dd>
                            <dt>商家所得金额：</dt>
                            <dd><?php echo $shop_stream; ?></dd>
							<?php if(!empty($realname)): ?>
							<dt style="width:150px">商家自提佣金（<?php echo $realname; ?>）：</dt>
                            <dd><?php echo $mention_balance['money']; ?></dd>
							<?php endif; ?>                            
                        </dl>
						
                        <dl>
                            <dt>余额抵扣：</dt>

                            <dt>优惠券抵扣：</dt>

                            <dt>价格调整：</dt>
                            <dd>减：<?php echo $order['discount']; ?></dd>
                        </dl>
                        <dl>
                            <dt>应付：</dt>
                            <dd><strong class="red_common"><?php echo $order['total_price']; ?></strong></dd>
                        </dl>
                    </div>
                    <!--   <div class="contact-info">
                           <h3>操作信息</h3>
                           <dl class="row">
                               <dt class="tit">
                                   <label for="note">操作备注</label>
                               </dt>
                               <dd class="opt" style="margin-left:10px">
                                   <textarea id="note" name="note" style="width:600px" rows="6"  placeholder="请输入操作备注" class="tarea"></textarea>
                               </dd>
                           </dl>
                           <dl class="row">
                               <dt class="tit">
                                   <label for="note">可执行操作</label>
                               </dt>
                               <dd class="opt" style="margin-left:10px">

                                           <a class="ncap-btn-big ncap-btn-green" href="javascript:void(0)" data-url="" >22222</a>

                               </dd>
                           </dl>
                       </div>-->
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">


    function delfun() {
        // 删除按钮
        layer.confirm('确认删除？', {
            btn: ['确定'] //按钮
        }, function () {
            console.log("确定");
        }, function () {
            console.log("取消");
        });
    }


</script>
</body>
</html>